odhcp6c: prevent RELEASE at shutdown when -k is set
authorNicolas BESNARD <[email protected]>
Thu, 10 Apr 2025 08:51:54 +0000 (08:51 +0000)
committerÁlvaro Fernández Rojas <[email protected]>
Mon, 3 Nov 2025 15:21:24 +0000 (16:21 +0100)
commitc5237eabeb5ca451354d58a8181013ed1001695e
tree8144d5a2cc50e68376a5030c1187829b7e9b49d5
parenta01b1ff1e50f3970ae1af6198022a94cc8fa702a
odhcp6c: prevent RELEASE at shutdown when -k is set

Problem: Based on the README, if -k option is set, a RELEASE message
should not be sent when the process is stopped. RELEASE messages are
also not sent in case of a forced RELEASE or reconfiguration, however.

Solution: Stop the transmission of RELEASE messages when the process is
stopped but allow it for a forced RELEASE or reconfiguration.

Signed-off-by: Nicolas BESNARD <[email protected]>
Signed-off-by: Paul Donald <[email protected]>
Link: https://github.com/openwrt/odhcp6c/pull/106
Signed-off-by: Álvaro Fernández Rojas <[email protected]>
src/odhcp6c.c